<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${ctx }/style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/common.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery-1.3.2.js"></script>
<script language="javascript" type="text/javascript" src="${ctx }/js/My97DatePicker/WdatePicker.js"></script>
<title>拍卖管理</title>

<script type="text/javascript">

function search(){

	var actionUrl = "${ctx }/account/accountAction!queryTransactions.do";

	$("#curPage").val(1);
	$("#searchForm").attr("action",actionUrl);
	$("#searchForm").submit();
}

</script>

</head>

<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<div id="main">
			<form action="${ctx }/account/accountAction!queryTransactions.do" id="searchForm" name="searchForm" method="post">
					<table width="910" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr><td>
							<table width="100%" cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td class="nw12a" width="60" align="right">
										拍品：</td><td><input name="filterTxt" value="painting_name" type="hidden"/>
										<input name="filterValue" type="text" size="15" value="${filterValue }"/>
										<img src="../images/an25.gif" width="50" height="21" onclick="search()" style="cursor: pointer;vertical-align: bottom;" >
									</td>
								</tr>
								<tr>
									<td class="nw12a"  align="right">成交时间：</td>
									<td>
										<input name="startDate" type="text" size="15" onClick="WdatePicker()" value="<fmt:formatDate value='${startDate }' pattern='yyyy-MM-dd'/>">&nbsp;&nbsp;
						              	至：<input name="endDate" type="text" size="15" onClick="WdatePicker()"  value="<fmt:formatDate value='${endDate }' pattern='yyyy-MM-dd'/>">&nbsp;&nbsp;
										<img src="../images/an25.gif" width="50" height="21" onclick="search()" style="cursor: pointer;vertical-align: bottom;" >
									</td>
								</tr>
							</table>
						</td></tr>
						<tr><td colspan="100%">
							<table width="900" align="center" border="0" cellpadding="0" cellspacing="1" bordercolor="#0099CC" bgcolor="#0099CC" >
							    <tr bgcolor="#CDE1ED">
				                    <td class="nw12b" align="center" height="25">拍品</td>
				                    <td class="nw12b" align="center">成交时间</td>
				                    <td class="nw12b" align="center">成交价</td>
				                    <td class="nw12b" align="center">分成比例</td>
				                    <td class="nw12b" align="center">结算状态</td>
				                    <td class="nw12b" align="center">结算时间</td>
				                    <td class="nw12b" align="center">结算金额(元)</td>
				                </tr>
				                <c:forEach items="${page.result}" var="result" varStatus="status">                  
					                <tr bgcolor="#FFFFFF">
						                    <td class="nw12b" align="center" height="25">${result.painting_name }</td>
						                    <td class="nw12b" align="center"><fmt:formatDate value="${result.deal_time }" pattern="yyyy-MM-dd HH:mm"/></td>
						                    <td class="nw12b" align="center"><fmt:formatNumber value="${result.deal_price }" pattern="#.##" type="number"/></td>
						                    <td class="nw12b" align="center"><fmt:formatNumber value="${result.ratio}" type="percent" pattern="#.##"/></td>
						                    <td class="nw12b" align="center">${result.dealStatus }</td>
						                    <td class="nw12b" align="center"><fmt:formatDate value="${result.dealFinishedTime }" pattern="yyyy-MM-dd HH:mm"/></td>
						                    <td class="nw12b" align="center"><fmt:formatNumber value="${result.money_amount }" pattern="#.##" type="number"/></td>
						             </tr>
					            </c:forEach>
					            <tr  bgcolor="#FFFFFF">
					            	<td colspan="6" align="center" height="25">合计</td>
					            	<td class="nw12b" align="center">${requestScope.totalAccount }</td>
					            </tr>
							</table>
					</td></tr>
					<tr>
			              <td colspan="100%" class="nw12a" align="center" height="30"><jsp:include page="/commons/paging_footer.jsp"/> </td>
			        </tr>
				</table>
			</form>
</div>
    
<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>